<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Cluster Aggregation: ClusterAggregation.Datum.AData Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Cluster Aggregation
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Clustering, made simple</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_cluster_aggregation_1_1_datum_1_1_a_data.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">ClusterAggregation.Datum.AData Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for ClusterAggregation.Datum.AData:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_cluster_aggregation_1_1_datum_1_1_a_data.png" usemap="#ClusterAggregation.Datum.AData_map" alt=""/>
  <map id="ClusterAggregation.Datum.AData_map" name="ClusterAggregation.Datum.AData_map">
<area href="class_cluster_aggregation_1_1_datum_1_1_c_pixel.html" alt="ClusterAggregation.Datum.CPixel" shape="rect" coords="0,56,200,80"/>
</map>
 </div></div>

<p><a href="class_cluster_aggregation_1_1_datum_1_1_a_data-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a44b436eaad12e94706f64df703b8f9db"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a44b436eaad12e94706f64df703b8f9db">compareTo</a> (<a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a> obj)</td></tr>
<tr class="memitem:ac809623b8c8aad88a8fd18b74779ece4"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#ac809623b8c8aad88a8fd18b74779ece4">getRandomDatum</a> ()</td></tr>
<tr class="memitem:a0aabdc8b93b58d454727f4e9cef3a1f6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a0aabdc8b93b58d454727f4e9cef3a1f6">normalize</a> (int arg)</td></tr>
<tr class="memitem:a30e1a713684e6bdd160d890d98264b34"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a30e1a713684e6bdd160d890d98264b34">accumulate</a> (<a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a> arg, int totalDataNumber)</td></tr>
<tr class="memitem:a06a02472d402641578197283b97e0a19"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a06a02472d402641578197283b97e0a19">zerodize</a> ()</td></tr>
<tr class="memitem:a56d0d2968eaeb055547f2cf779feeae9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a56d0d2968eaeb055547f2cf779feeae9">AData</a> (int dimension=0)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ad3112a51f4625be7fc563e018a29b38b"><td class="memItemLeft" align="right" valign="top">Int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#ad3112a51f4625be7fc563e018a29b38b">id</a></td></tr>
<tr class="memitem:a0aed3fd634fcb713a8cfdf9f5a8d8d96"><td class="memItemLeft" align="right" valign="top">double[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a0aed3fd634fcb713a8cfdf9f5a8d8d96">coordinates</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Abstract datum form. Generalizes the coordinates to be whatever we need, color, location, a vector etc. </p>

<p>Definition at line <a class="el" href="_a_data_8cs_source.html#l00012">12</a> of file <a class="el" href="_a_data_8cs_source.html">AData.cs</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a56d0d2968eaeb055547f2cf779feeae9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a56d0d2968eaeb055547f2cf779feeae9">ClusterAggregation.Datum.AData.AData</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dimension</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>constructor. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dimension</td><td>(int) [IN] sets the dimension of the coordinates vector. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_a_data_8cs_source.html#l00088">88</a> of file <a class="el" href="_a_data_8cs_source.html">AData.cs</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a30e1a713684e6bdd160d890d98264b34"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a30e1a713684e6bdd160d890d98264b34">ClusterAggregation.Datum.AData.accumulate</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a>&#160;</td>
          <td class="paramname"><em>arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>totalDataNumber</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>accumulates another data into current datum. only accumulates a part of it (e.g. arg.x / totalDataNumber) </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">arg</td><td>(<a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a>) [IN] the data to accumulate </td></tr>
    <tr><td class="paramname">totalDataNumber</td><td>(int) [IN] the total number of data we're going to accumulate. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_a_data_8cs_source.html#l00057">57</a> of file <a class="el" href="_a_data_8cs_source.html">AData.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a44b436eaad12e94706f64df703b8f9db"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a44b436eaad12e94706f64df703b8f9db">ClusterAggregation.Datum.AData.compareTo</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a>&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>most basic comparator, by id </p>

<p>Reimplemented in <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_c_pixel.html#a0dcd865cc04ecb417e0de1f845769f9f">ClusterAggregation.Datum.CPixel</a>.</p>

<p>Definition at line <a class="el" href="_a_data_8cs_source.html#l00022">22</a> of file <a class="el" href="_a_data_8cs_source.html">AData.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ac809623b8c8aad88a8fd18b74779ece4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a> <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#ac809623b8c8aad88a8fd18b74779ece4">ClusterAggregation.Datum.AData.getRandomDatum</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>generates a new RANDOM datum </p>

<p>Reimplemented in <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_c_pixel.html#a1a90c79d48d20942f8f48dfe102786e5">ClusterAggregation.Datum.CPixel</a>.</p>

<p>Definition at line <a class="el" href="_a_data_8cs_source.html#l00031">31</a> of file <a class="el" href="_a_data_8cs_source.html">AData.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a0aabdc8b93b58d454727f4e9cef3a1f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a0aabdc8b93b58d454727f4e9cef3a1f6">ClusterAggregation.Datum.AData.normalize</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>normalize the coordinates (divides by param) </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">arg</td><td>(int) [IN] </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_a_data_8cs_source.html#l00045">45</a> of file <a class="el" href="_a_data_8cs_source.html">AData.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a06a02472d402641578197283b97e0a19"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a06a02472d402641578197283b97e0a19">ClusterAggregation.Datum.AData.zerodize</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>function resets all the coordinates. thus we can later accumulate data inside and calculate a new point (for k-means and such). </p>

<p>Definition at line <a class="el" href="_a_data_8cs_source.html#l00078">78</a> of file <a class="el" href="_a_data_8cs_source.html">AData.cs</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a0aed3fd634fcb713a8cfdf9f5a8d8d96"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double [] <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#a0aed3fd634fcb713a8cfdf9f5a8d8d96">ClusterAggregation.Datum.AData.coordinates</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>coordinates vector </p>

<p>Definition at line <a class="el" href="_a_data_8cs_source.html#l00017">17</a> of file <a class="el" href="_a_data_8cs_source.html">AData.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad3112a51f4625be7fc563e018a29b38b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Int32 <a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html#ad3112a51f4625be7fc563e018a29b38b">ClusterAggregation.Datum.AData.id</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>singular id (assigned by creator of object) </p>

<p>Definition at line <a class="el" href="_a_data_8cs_source.html#l00015">15</a> of file <a class="el" href="_a_data_8cs_source.html">AData.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_a_data_8cs_source.html">AData.cs</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_cluster_aggregation.html">ClusterAggregation</a>      </li>
      <li class="navelem"><a class="el" href="namespace_cluster_aggregation_1_1_datum.html">Datum</a>      </li>
      <li class="navelem"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a>      </li>

    <li class="footer">Generated on Sun Jun 10 2012 19:35:08 for Cluster Aggregation by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
